using BlockOS.Console;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BlockOS.Client
{
    public class CloseTerminalCommand : Command
    {
        public CloseTerminalCommand() : base(0) { }

        public override IEnumerator Call(IGame game, string[] parameters)
        {
            if (game is GameClient client)
            {
                client.GetTerminal().Close();
            }
            else
            {
                game.Console.PutMessage("Unable to close a GUI on server.");
            }
            yield return null;
        }
    }
}
